package com.lry.basic.rmi;

import java.rmi.Naming;
import java.rmi.registry.LocateRegistry;

public class Test {

    public static void main(String[] args) throws Exception {

        LocateRegistry.createRegistry(1098);

        Naming.bind("rmi://localhost:1098/GreetService", new GreetServiceImpl());

    }
}
